﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CRM.Database.Model.Users>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%: CRM.Resourses.Resourses.UsersDetails%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2><%: CRM.Resourses.Resourses.UsersDetails%></h2>

<fieldset style="max-width:500px;">
    <legend><%:CRM.Resourses.Resourses.UsersUser%></legend>

    <div class="editor-label"><b><%:CRM.Resourses.Resourses.UsersFullName%></b></div>
    <div class="display-field"><%: Html.DisplayFor(model => model.LocalizedFullName) %></div>
        
    <div class="display-label"><b><%:CRM.Resourses.Resourses.UsersUserLogin%></b></div>
    <div class="display-field"><%: Html.DisplayFor(model => model.UserLogin) %></div>

    <div class="display-label"><b><%:CRM.Resourses.Resourses.Email%></b></div>
    <div class="display-field"><%: Html.DisplayFor(model => model.UserEmail) %></div>

    <div class="display-label"><b><%:CRM.Resourses.Resourses.UsersRoles%></b></div>
    <div class="display-field"><%Html.RenderAction("RolesPartial"); %></div>

</fieldset>
<p>
<%--    <%: Html.ActionLink("Edit", "Edit", new { /* id=Model.PrimaryKey */ }) %> | --%>    
<%--<%: Html.ActionLink(CRM.Resourses.Resourses.BackToList, "Index") %>--%>
<%: Html.ActionLink(CRM.Resourses.Resourses.BackToList, "Users", "Dictionaries")%>
</p>

</asp:Content>
